package com.summer.campussct.controller;

import com.summer.campussct.pojo.dto.RestResult;
import com.summer.campussct.service.IHomeService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@Api(tags = "首页数据相关API")
@RestController
public class HomeController {

    @Resource
    private IHomeService homeService;

    @ApiOperation("获取首页分类数据")
    @GetMapping("homeData")
    public RestResult getHomeData(){
        return homeService.getHomeData();
    }
}
